import request from '@/utils/request'

// 查询仓库区域列表
export function areaList(query) {
  return request({
    url: '/system_setting/area/list',
    method: 'get',
    params: query
  })
}

// 查询仓库区域详细
export function getArea(areaId) {
  return request({
    url: '/system_setting/area/' + areaId,
    method: 'get'
  })
}

// 新增仓库区域
export function addArea(data) {
  return request({
    url: '/system_setting/area',
    method: 'post',
    data: data
  })
}

// 修改仓库区域
export function updateArea(data) {
  return request({
    url: '/system_setting/area',
    method: 'put',
    data: data
  })
}

// 删除仓库区域
export function delArea(areaIds) {
  return request({
    url: '/system_setting/area/' + areaIds,
    method: 'delete'
  })
}
